package com.cl.mypureframe.model;

import java.util.List;

/**
 * 登录接口 返回值实体类
 * Created by Lei
 * on 2020/10/15
 */
public class ResLoginMod {
    private int errorCode;
    private String errorMsg;
    private UserinfoBean data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public UserinfoBean getData() {
        return data;
    }

    public void setData(UserinfoBean data) {
        this.data = data;
    }

    public static class UserinfoBean {
        private String id;// 用户id
        private String openId;// 微信openId（未绑定过不需要返回openId）
        private String grade;// 信用分数
        private String name;// 用户姓名
        private String phone;// 用户手机号
        private String cardNum;// 用户身份证号码
        private String userPic;// 用户头像地址
        private int yhlx;// 用户类型 3农户 5经销商 6田间调查员 （8供应户）
        private String year;// 年
        private String ncId;// 农场id
        private List<PlatformsBean> platforms;


        /**
         * platforms：[
         * {
         * id：权限id（1移动端种植户平台、15移动端工作平台、16移动端展示平台）
         * authorities：[
         * 种植规程,plantStructure,1
         * 科教视频,scienceVideo,1
         * 农技百科,techWiki,1
         * 市场行情,marketMood,1
         * 专家在线提问,expertAsk,1
         * 种植户供求信息发布,sdCreate,1
         * 种植户供求信息查看,sdSelect,1
         * 农资采购,procure,1
         * 虫情监测,wormmonitor,1
         * <p>
         * 移动端新闻审核,ydnewssh,15
         * 移动端供求审核,yddemandsh,15
         * 移动端田间调查审核,ydinvestigationsh,15
         * 移动端商品发布审核,ydgoodsh,15
         * 移动端农资采购管理,ydordergl,15
         * 移动端种植结构管理,ydzzjggl,15
         * 移动端粮食产量上报审核,ydclsh,15
         * 移动端当前农时任务审核,ydtasksh,15
         * 移动端任务反馈审核,ydreplysh,15
         * 移动端种植计划审核,ydplanesh,15
         * 移动端市场行情审核,ydquotationssh,15
         * 专家在线回答,expertAnswer,15
         * 田间调查,examine,15
         * 网格管理,gridgl,15
         * 供需户供求信息发布,gxhSdCreate,15
         * 供需户供求信息查看,gxhSdSelect,15
         * <p>
         * 展示平台部分展示,showinfo,16
         * 展示平台详细展示,showdetail,16
         * ]
         * }
         * ]
         */
        public static class PlatformsBean {
            private int id;// 权限id
            private List<String> authorities;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public List<String> getAuthorities() {
                return authorities;
            }

            public void setAuthorities(List<String> authorities) {
                this.authorities = authorities;
            }
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getGrade() {
            return grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getCardNum() {
            return cardNum;
        }

        public void setCardNum(String cardNum) {
            this.cardNum = cardNum;
        }

        public String getUserPic() {
            return userPic;
        }

        public void setUserPic(String userPic) {
            this.userPic = userPic;
        }

        public int getYhlx() {
            return yhlx;
        }

        public void setYhlx(int yhlx) {
            this.yhlx = yhlx;
        }

        public String getYear() {
            return year;
        }

        public void setYear(String year) {
            this.year = year;
        }

        public String getNcId() {
            return ncId;
        }

        public void setNcId(String ncId) {
            this.ncId = ncId;
        }

        public List<PlatformsBean> getPlatformsBeanList() {
            return platforms;
        }

        public void setPlatformsBeanList(List<PlatformsBean> platformsBeanList) {
            this.platforms = platformsBeanList;
        }
    }

}
